package server;

import com.lry.rpc.config.RpcServiceBean;
import com.lry.rpc.netty.server.RpcServer;
import impl.TestService;
import impl.TestServiceImpl;

public class BrokerStartup {

    public static void main(String[] args) {

        RpcServer rpcServer = new RpcServer();

        RpcServiceBean rpcServiceBean = RpcServiceBean.buildRpcServiceBean(new TestServiceImpl());

        rpcServer.registerService(rpcServiceBean);

        rpcServer.start();
    }

}
